impulse fomula to solve problems